home *** CD-ROM | disk | FTP | other *** search
- Path: cph-1.news.DK.net!dkuug!dknet!usenet
- From: Carsten Bonde <cab@kmd.dk>
- Newsgroups: comp.lang.c++
- Subject: Special sort algorithm
- Date: Wed, 27 Mar 1996 14:09:29 +0100
- Organization: Kommunedata
- Message-ID: <31593E09.29A0@kmd.dk>
- NNTP-Posting-Host: saturn.kmd.dk
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (WinNT; I)
-
- Hi
-
- This is not strictly related to C++, but I guess some of you may have a hint
- on this anyway.
-
- I am trying to make a DOS file sorting program, which is to be part of a commercial product.
- It must :
- - Sort big files of short lines
- lines are uneven length
- files are XX MB
- lines are < 100 chars
- - Put resulting file in original file
- - Run in very little memory ( < 50 K)
- - Use about no extra disk space ( < 10% extra)
- - Run reasonably fast
-
- I have tried implementing in-file bubblesort and others with the language
- being C++. But they are way too slow, even with some optimizing buffers.
-
- Does anyone have a suggestion for a good algorithm, or maybe even source.
-
- Any hints appreciated.
-
- ------------------------------------------------------------------
- Carsten Bonde Kommunedata I/S
- cab@kmd.dk
-